/DIV>
GetWindowClass
Obtains
the class of a window.
pascal OSStatus GetWindowClass (
WindowPtr window,
WindowClass *outClass);
-
window
-
A value of type
WindowPtr
. Pass a pointer to the window whose class you wish to obtain.
-
outClass
-
A pointer to a value of type
WindowClass
. On return, this value identifies the class of the specified window. See
Window Class Constants for a list of possible window classes. If the window was not originally created using the function
CreateNewWindow
, the class pointed to by the
outClass
parameter is always identified by the constant
kDocumentWindowClass
.
-
function result
-
A result code. See
Result Codes.
DISCUSSION
A window's class categorizes the window for purposes of display (that is, both the window's appearance and its display ordering) and tracking. A window's class cannot be altered once the window has been created.
VERSION NOTES
Available with Mac OS 8.5 and later.
© 1999 Apple Computer, Inc. – (Last Updated 18 March 99)